<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
    <link rel="stylesheet" th:href="@{/static/css/admin.css}">
</head>
<body class="login-body">
    <div class="login-container">
        <h2>管理员注册</h2>
        <form th:action="@{/admin/register}" method="post">
            <div class="form-group">
                <input type="text" name="username" placeholder="用户名" required>
            </div>
            <div class="form-group">
                <input type="password" name="password" placeholder="密码" required>
            </div>
            <div class="form-group">
                <input type="password" name="confirmPassword" placeholder="确认密码" required>
            </div>
            <button type="submit">注册</button>
        </form>
        <div class="login-footer">
            <a th:href="@{/admin/login}">已有账号？立即登录</a>
        </div>
    </div>
</body>
</html>
